package com.jdk.study.d2jvm.chapter05;

/**
 * @description: 体会 invokedynamic 指令
 * @author: JackLi
 * @date: 2020/4/13 15:19
 */
public class Stack11_Lambda {

    public void lambda(Func func) {
        return;
    }

    public static void main(String[] args) {
        Stack11_Lambda lambda = new Stack11_Lambda();

        Func func = s -> {
            return true;
        };

        lambda.lambda(func);

        lambda.lambda(s -> {
            return true;
        });
    }

}

@FunctionalInterface
interface Func {
    boolean func(String str);
}
